'use strict'

const koa = require('koa')
const cors = require('koa-cors')
const bodyparser = require('koa-bodyparser')
const router = require('./router')
const {sync} =require('./model')

let app = new koa();
sync()
app.use(cors())
app.use(bodyparser())
app.use(router())

app.listen('8000')
